@extends('admin.base')
@section('content')
    <!--面包屑导航 开始-->
    <div class="crumb_warp">
        <!--<i class="fa fa-bell"></i> 欢迎使用登陆网站后台，建站的首选工具。-->
        <i class="fa fa-home"></i> <a href="{{url('admin')}}">首页</a> &raquo; <a href="#">友情链接管理</a> &raquo; 修改友情链接
    </div>
    <!--面包屑导航 结束-->

    <!--结果集标题与导航组件 开始-->
    <div class="result_wrap">
        <div class="result_title">
            <h3>快捷操作</h3>
            @if (count($errors) > 0)
                <div class="mark">
                    <ul>
                        @if(is_object($errors))
                            @foreach ($errors->all() as $error)
                                <li>{{ $error }}</li>
                            @endforeach
                        @else
                            <li>{{ session('errors') }}</li>
                        @endif
                    </ul>
                </div>
            @endif
        </div>
        <div class="result_content">
            <div class="short_wrap">
                <a href="{{url('admin/friend_link/create')}}"><i class="fa fa-plus"></i>修改友情链接</a>

            </div>
        </div>
    </div>
    <!--结果集标题与导航组件 结束-->
    
    <div class="result_wrap">
        <form action="{{url('admin/friend_link/'.$data->id)}}" method="post">
            {{csrf_field()}}
            <input type="hidden" name="_method" value="put">
            <table class="add_tab">
                <tbody>
                    <tr>
                        <th><i class="require">*</i>链接名：</th>
                        <td>
                            <input type="text" name="name" value="{{$data->name}}">
                            <span></span>
                        </td>
                    </tr>
                    <tr>
                        <th><i class="require">*</i>Url：</th>
                        <td>

                            <input type="text" name="url"  class="lg" value="{{$data->url}}">
                            <span></span>
                        </td>
                    </tr>
                    <tr>
                        <th><i class="require">*</i>链接标题：</th>
                        <td>

                            <input type="text" name="title"  class="lg" value="{{$data->title}}">
                            <span></i></span>
                        </td>
                    </tr>
                    <tr>
                        <th><i class="require">*</i>排序：</th>
                        <td>

                            <input type="text" name="order" value="{{$data->order}}">
                            <span></i></span>
                        </td>
                    </tr>


                    <tr>
                        <th></th>
                        <td>
                            <button type="submit" class="btn btn-primary">修改</button>
                            <button type="submit" class="btn btn-primary" onclick="history.go(-1)">返回</button>
                            
                        </td>
                    </tr>
                </tbody>
            </table>
        </form>
    </div>
@endsection